<?php /*a:2:{s:64:"D:\laragon\www\jiaqueshop\application\manage\view\cash_show.html";i:1598607541;s:59:"D:\laragon\www\jiaqueshop\application\manage\view\base.html";i:1596192950;}*/ ?>
<!DOCTYPE html>
<html lang="zh-cmn-Hans">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
<meta http-equiv="X-UA-Compatible" content="ie=edge,chrome=1">
	<meta name="renderer" content="webkit">
<title>后台管理系统</title>
<link rel="stylesheet" href="/static/public/awesome/css/font-awesome.min.css" />

<link rel="stylesheet" href="/static/public/layui/css/layui.css" />

<link rel="stylesheet" href="/static/public/kindeditor/themes/default/default.css" />
<link rel="stylesheet" href="/static/manage/css/style.css" />

	<link rel="stylesheet" href="/static/public/dist/zoomify.min.css">
	
<script src="/static/public/kindeditor/kindeditor-all.js"></script>
<script src="/static/public/kindeditor/lang/zh_CN.js"></script>
<script src="/static/public/ueditor/ueditor.config.js?t=<?php echo time();?>"></script>
<script src="/static/public/ueditor/ueditor.all.min.js"></script>
<script src="/static/public/ueditor/lang/zh-cn/zh-cn.js"></script>
</head>
<body>
<?php if($is_auth): ?>

<script language="javascript" type="text/javascript" src="/static/public/My97DatePicker/WdatePicker.js"></script>
<div class="g-main">
    <div class="m-main-title">
        <div class="m-container-fluid">
            <a href="<?php echo url('index/welcome'); ?>"><i class="icon icon-home"></i>首页</a>
            <span class="icon-angle-right"></span>
            <span>商城</span>
            <span class="icon-angle-right"></span>
            <span>提现管理</span>
            <span class="icon-angle-right"></span>
            <span>查看信息</span>
            <a class="u-flush"><i class="icon-repeat"></i></a>
        </div>
    </div>
    <div class="m-main-content">
        <div class="m-container">
            <div class="m-form">
                <form class="layui-form" id="j_form">
                    <table class="m-table">
                        <thead>
                            <tr>
                                <th colspan="2">银行卡/微信号</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr>
                                <td width="15%"><label for="alias_name">微信号</label></td>
                                <td><?php echo htmlentities($data['member_cash']['wecaht_number']); ?></td>
                            </tr>
                            <tr>
                                <td width="15%"><label for="alias_name">姓名</label></td>
                                <td><?php echo htmlentities($data['member_cash']['name']); ?></td>
                            </tr>
                            <tr>
                                <td width="15%"><label for="alias_name">卡号</label></td>
                                <td><?php echo htmlentities($data['member_cash']['card_no']); ?></td>
                            </tr>
                            <tr>
                                <td width="15%"><label for="alias_name">开户行</label></td>
                                <td><?php echo htmlentities($data['member_cash']['bank']); ?></td>
                            </tr>
                        </tbody>
                    </table>
                    <table class="m-table">
                        <thead>
                        <tr>
                            <th colspan="2">基本信息</th>
                        </tr>
                        </thead>
                        <tbody>
                        <tr>
                            <td width="15%"><label for="alias_name">昵称</label></td>
                            <td><?php echo htmlentities($data['nickname']); ?></td>
                        </tr>
                        <tr>
                            <td width="15%"><label for="alias_name">头像</label></td>
                            <td><img src="<?php echo htmlentities($data['headimgurl']); ?>" alt="" style="display: block; width: 50px; height: 50px;" /></td>
                        </tr>
                        <tr>
                            <td width="15%"><label for="alias_name">店铺名称</label></td>
                            <td><?php echo htmlentities($data['business_name']); ?></td>
                        </tr>
                        <tr>
                            <td width="15%"><label for="alias_name">提现金额</label></td>
                            <td><?php echo htmlentities($data['money']); ?>元</td>
                        </tr>
                        <tr>
                            <td width="15%"><label for="alias_name">提现方式</label></td>
                            <td><?php echo htmlentities($data['withdrawal_method']); ?></td>
                        </tr>
                        <tr>
                            <td width="15%"><label for="alias_name">状态</label></td>
                            <td><?php echo htmlentities($data['status_txt']); ?></td>
                        </tr>
                        <tr>
                            <td width="15%"><label for="alias_name">提现时间</label></td>
                            <td><?php echo htmlentities($data['created_at']); ?></td>
                        </tr>
                        <tr>
                            <td width="15%"><label for="alias_name">操作</label></td>
                            <td>
                                <?php if($data['status'] == 0): ?>
                                <a data-id="<?php echo htmlentities($data['id']); ?>" data-status="1" class="u-exam">审核通过</a>
                                <a data-id="<?php echo htmlentities($data['id']); ?>" data-status="2" class="u-exam">审核不通过</a>
                                <?php endif; ?>
                            </td>
                        </tr>
                        </tbody>
                    </table>
                </form>
            </div>
        </div>
    </div>
</div>

<?php endif; ?>
<input type="hidden" name="action_uri" value="<?php echo url('action'); ?>" />

<input type="hidden" name="redirect_uri" value="<?php echo url('index'); ?>" />

<input type="hidden" name="region_uri" value="/manage/regions/regions" />
<script src="/static/public/js/jquery-1.10.2.js"></script>
<script src="/static/public/js/maniac.ui.js"></script>
<script src="/static/public/layui/layui.js" charset="utf-8"></script>
<script src="/static/public/js/aes.js"></script>
<script src="/static/public/js/mode-ecb-min.js"></script>
<script src="/static/public/js/utils.js"></script>
<script src="/static/public/js/dialog.js"></script>
<script src="/static/manage/js/form.js"></script>
<script src="/static/manage/js/js.js"></script>
<script src="/static/public/js/app.js"></script>
<script src="/static/public/js/encrypt.js"></script>
<script src="/static/public/dist/zoomify.min.js"></script>
<script type="text/javascript">
    $('.fdzoom').zoomify();
</script>

<script>
var aesKey = '<?php echo htmlentities($encrypt_key); ?>';
    $(function(){
        layui.use('layer', function(){
            var user_exists = parseInt('<?php echo !empty($user_exists) ? 1  :  0; ?>');
            var user_forbidden = parseInt('<?php echo !empty($user_forbidden) ? 1  :  0; ?>');
            var quit_force = parseInt('<?php echo !empty($quit_force) ? 1  :  0; ?>');
            var is_auth    = parseInt('<?php echo !empty($is_auth) ? 1  :  0; ?>');
            
            if (user_exists) {
                dialog.error('您所登录的用户已被删除', function(){
                	top.location.href = '/manage';
                    return false;
                });
            }
            
            if (user_forbidden) {
                dialog.error('您的账户已被禁用', function(){
                	top.location.href = '/manage';
                    return false;
                });
            }

            if (quit_force) {
                dialog.error('同一账户同一时间只能一人在线', function(){
                	top.location.href = '/manage';
                    return false;
                });
            }
            
            if (!is_auth) {
                dialog.error('您没有权限执行此操作', function(){
                    window.location.href = history.go(-1);
                    return false;
                });
            }
        });
    })
</script>


<script>
    layui.use(['layer'], function(){
        var layer = layui.layer;

        $('.u-exam').on('click', function(){
            var id     = $(this).attr('data-id');
            var status = $(this).attr('data-status');
            layer.confirm('您确定执行此操作吗？', {
                btn: ['确定','取消'] //按钮
            }, function(){
                $.post('<?php echo url("examine"); ?>', {id: id, status: status}, function(ret){
                    if (ret.status == 0) {
                        dialog.success(ret.message, function(){
                            window.location.reload();
                        })
                    }
                }, 'json');
            }, function(){

            });
        })
    })
</script>

</body>
</html>